Compressing or Decompressing During Interrupt Time
If a compressor or decompressor component implements the
DataCodecBeginInterruptSafe
and
DataCodecEndInterruptSafe
functions, your application or other software can perform compression or decompression operations during interrupt time. You do this as follows:
-
Before performing the compression or decompression operation, call the
DataCodecBeginInterruptSafe
function.In the call, pass the maximum size of a data block to be compressed or decompressed in the
maxSrcSize
parameter.
-
If the call fails, do not perform operations that are not safe during interrupt time.
-
When the compression or decompression operation is complete, call the
DataCodecEndInterruptSafe
function to release resources used to make the operation safe at interrupt time.
© 1999 Apple Computer, Inc.| Previous | Chapter Contents | Chapter Top | Next |